/*
 * Created: 2022-09-13 22:19:02
 * Author : 涛涛涛
 */

import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import ProductCard from '@/pages/components/ProductCard/ProductCard';
export interface IProps extends ICompProps {}
TestProductCard.defaultProps = {} as Partial<IProps>;
function TestProductCard(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('TestProductCard', className);
    return (
        <RootView className={localClassName} style={style}>
            <ProductCard
                title="八九系列盲盒"
                subTitle="副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题"
                price="40"
                classCard="willPay"
                isCollection={true}
                handlePay={() => {
                    console.log('收藏。。。。');
                }}
                imgUrl={require('@/assets/images/avatar.png')}></ProductCard>
            <ProductCard
                title="八九系列盲盒"
                subTitle="副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题"
                price="40"
                classCard="payed"
                payedtext="儿豁嘛"
                isCollection={true}
                handlePay={() => {
                    console.log('收藏。。。。');
                }}
                imgUrl={require('@/assets/images/avatar.png')}></ProductCard>

            <ProductCard
                title="八九系列盲盒"
                subTitle="副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题副标题"
                price="40"
                classCard="collection"
                isCollection={true}
                handlePay={() => {
                    console.log('收藏。。。。');
                }}
                handleChangeCollection={() => {
                    console.log('点击了收藏');
                }}
                imgUrl={require('@/assets/images/avatar.png')}></ProductCard>
        </RootView>
    );
}
export default React.memo(TestProductCard as FC<IProps>);
const RootView = styled(View)`
    &.TestProductCard {
    }
`;
